{php include pubTemplate("header_admin")}
<script src="public/js/jquery.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
	$.getJSON("https://www.thinksaas.cn/index.php?app=notice&ac=new&callback=?",
	function(data){
		$.each(data, function(i,item){
			$("#admindex_msg table").append("<tr><td width=\"120\">"+item.time+"</td><td><a href=\""+item.url+"\" target=\"_blank\">"+item.title+"</a></td></tr>");
		});
		return false;
	});

    var theAuthUrl = getLocation();
    var theVersion = "{$TS_CF['info']['version']}";
	$.getJSON("https://www.thinksaas.cn/index.php?app=service&ac=auth&ts=isauth&url="+theAuthUrl+"&version="+theVersion+"&callback=?",
	function(rs){
		if(rs){
			if(rs.isaudit==1){
				$("#authurl").html(theAuthUrl+'当前域名已获得商业授权');
				return false;
			}else{
				$("#authurl").html(theAuthUrl+'当前域名未被授权 <a target=\"_blank\" href=\"https://www.thinksaas.cn/service/down/\">【购买商业授权】</a>');
				return false;
			}
		}else{
			$("#authurl").html(theAuthUrl+'当前域名未被授权 <a target=\"_blank\" href=\"https://www.thinksaas.cn/service/down/\">【购买商业授权】</a>');
			return false;
		}
	});
});

function getLocation(){
    var arr = document.domain.split('.');
    if(arr.length === 2){
        return document.domain;
    }
    if(arr.length > 2 && arr[0] !== 'www'){
        return arr.slice(1).join('.')
    }
    return arr.slice(1).join('.')
}
</script>



<div class="midder">


    <div class="row mt-3">

        <div class="col-md-6">

            <div class="card mb-3">
                <div class="card-header">目录权限</div>
                <div class="card-body">

                    <table class="table table-sm table-borderless fs12">
                        <tbody>
                        <tr><td width="120">cache目录：</td><td>{if iswriteable('cache')==0}<font color="red">不可写</font>(请设置为可写777权限){else}可写{/if}</td></tr>
                        <tr><td>data目录：</td><td>{if iswriteable('data')==0}<font color="red">不可写</font>(请设置为可写777权限){else}可写{/if}</td></tr>
                        <tr><td>tslogs目录：</td><td>{if iswriteable('tslogs')==0}<font color="red">不可写</font>(请设置为可写777权限){else}可写{/if}</td></tr>
                        <tr><td>upgrade目录：</td><td>{if iswriteable('upgrade')==0}<font color="red">不可写</font>(请设置为可写777权限){else}可写{/if}</td></tr>
                        <tr><td>uploadfile目录：</td><td>{if iswriteable('uploadfile')==0}<font color="red">不可写</font>(请设置为可写777权限){else}可写{/if}</td></tr>
                        </tbody>
                    </table>
                </div>
            </div>


        </div>
        <div class="col-md-6">


            <div class="card mb-3">
                <div class="card-header">软件信息</div>
                <div class="card-body">
            <table class="table table-sm table-borderless fs12">
                <tbody>
                <tr><td width="120">程序版本：</td><td>{$TS_CF['info']['name']} {$TS_CF['info']['version']}  <span id="upgrade"></span></td></tr>
                <tr><td>联系方式：</td><td>QQ:{$TS_CF['info']['qq']} 微信：{$TS_CF['info']['weixin']}</td></tr>
                <tr><td>官方网址：</td><td><a href="{$TS_CF['info']['url']}" target='_blank'>{$TS_CF['info']['url']}</a></td></tr>
                <tr><td>域名授权：</td><td><span id="authurl"></span></td></tr>
                <tr><td>官方社区：</td><td><a target="_blank" href="https://demo.thinksaas.cn/">https://demo.thinksaas.cn/</a></td></tr>
                </tbody>
            </table>
                </div>
            </div>

        </div>
        <div class="col-md-6">

            <div class="card mb-3">
                <div class="card-header">服务器信息</div>
                <div class="card-body">
            <table class="table table-sm table-borderless fs12">
                <tbody>
                <tr><td width="120">服务器软件：</td><td>{$systemInfo[server]}</td></tr>
                <tr><td>操作系统：</td><td>{$systemInfo[phpos]}</td></tr>
                <tr><td>PHP版本：</td><td>{$systemInfo[phpversion]}</td></tr>
                <tr><td>MySQL版本：</td><td>{$systemInfo[mysql]}</td></tr>
                <tr><td>物理路径：</td><td>$_SERVER[DOCUMENT_ROOT]</td></tr>
                <tr><td>php附件上传限制：</td><td>{$systemInfo['upload']}</td></tr>
                <tr><td>php内存限制：</td><td>{$systemInfo['memory']}</td></tr>
                <tr><td>php图像处理：</td><td>{$systemInfo['gd']} </td></tr>
                <tr><td>语言：</td><td>{$_SERVER[HTTP_ACCEPT_LANGUAGE]}</td></tr>
                <tr><td>gzip压缩：</td><td>{if $_SERVER[HTTP_ACCEPT_ENCODING]}{$_SERVER[HTTP_ACCEPT_ENCODING]}{else}不支持{/if}</td></tr>
                </tbody>
            </table>
                </div>
            </div>

        </div>
        <div class="col-md-6" id="admindex_msg">

            <div class="card mb-3">
                <div class="card-header">ThinkSAAS消息</div>
                <div class="card-body">
            <table class="table table-sm table-borderless fs12">
                <tbody>

                </tbody>
            </table>
                </div>
            </div>

        </div>

    </div>




</div>
<script src="https://yzf.qq.com/xv/web/static/chat_sdk/yzf_chat.min.js"></script>
  <script>
    //参数说明
    //sign：公司渠道唯一标识，复制即可，无需改动
    //uid：用户唯一标识，如果没有则不填写，默认为空
    //data：用于传递用户信息，最多支持5个，参数名分别为c1,c2,c3,c4,c5；默认为空
    //selector：css选择器(document.querySelector, 如#btnid .chat-btn等)，用于替换默认的常驻客服入口
    //callback(type, data): 回调函数,type表示事件类型， data表示事件相关数据
    //type支持的类型：newmsg有新消息，error云智服页面发生错误， close聊天窗口关闭
    window.yzf && window.yzf.init({
      sign: '37ef9b97db7457ce2145c8bc4ab0b561da45d8ff4b43851de2089b714a7620caeb1940b351ec8eb1bd43cd45d8c34ba8fd817832',
      uid: '',
      data: {
        c1: '',
        c2: '',
        c3: '',
        c4: '',
        c5: ''
      },
      selector: '',
      callback: function(type, data){}
    })
    //window.yzf.close() 关闭1已打开的回话窗口
</script>
{php include pubTemplate("footer_admin")}